package com.lhd.charging.device.controller;


import com.lhd.charging.pojo.UserInfoVO;
import com.lhd.charging.web.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/user")
@RestController
@Api(tags = "用户相关接口")
public class UserController {

    @ApiOperation("获取用户信息")
    @GetMapping("/info/{userId}")
    public JsonResult<UserInfoVO> getUserInfo(@PathVariable("userId") Integer userId) {
        log.debug("获取用户信息-{}",userId);
        UserInfoVO vo = new UserInfoVO();
        vo.setCarId(11);
        return JsonResult.ok(vo);
    }
}
